package pers.whj.util.graph;

public interface WeiGraph<T, E> extends Graph<T> {
    E getWeight(int v1, int v2);

    E getWeight(T vertex1, T vertex2);

    void setWeight(int v1, int v2, E weight);

    void setWeight(T vertex1, T vertex2, E weight);

    boolean insertEdge(int v1, int v2, E weight);

    boolean insertEdge(T vertex1, T vertex2, E weight);
}